package com.aaa.controller;

import com.aaa.entity.AliPay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/11/15 10:39
 * @Description
 */
@RestController
//@ResponseBody
//@Controller
public class HelloController {
    @GetMapping("hello")
    public Map<String,Object> hello(){
        Map<String, Object> map = new HashMap<>();
        map.put("1","hello");
        map.put("2","world");
        return map;
    }

    @Autowired
    private AliPay aliPay;
    @GetMapping("ali")
    public AliPay pay(){
        return aliPay;
    }
}
